<template>
	<view class="follow">
		<headerBar title="跟单" isShowSearch isShowNews></headerBar>
		
		<!-- 账单 -->
		<view class="bill">
			<view class="bill-item bill-follow">
				<view class="info">
					<view class="name">我的跟单</view>
					<view class="tips">查看跟单收益</view>
				</view>
				<text class="iconfont icon-data"></text>
			</view>
			<view class="bill-item bill-trader">
				<view class="info">
					<view class="name">成为交易员</view>
					<view class="tips">即刻开启带单</view>
				</view>
				<text class="iconfont icon-trade"></text>
			</view>
		</view>
		
		<!-- 交易员列表 -->
		<view class="trader-wrap">
			
			<view class="trader-box">
				<view class="trader-title">
					<text>USDT合约交易员</text>
					<navigator url="/">更多 ></navigator>
				</view>
				<view class="trader-list">
					<view class="trader-item">
						<view class="trader-item-top">
							<view class="user">
								<view class="avatar">
									<image src="../../../static/img/avatar.jpg"></image>
								</view>
								<view class="info">
									<text class="name">OK女王</text>
									<text class="bourse">OKEX交易所</text>
								</view>
								<text class="iconfont icon-safe"></text>
							</view>
							<text class="follow-btn">跟随</text>
						</view>
						<view class="trader-item-bottom">
							<view class="yield">
								<text class="num rise">187.45%</text>
								<text class="name">收益率</text>
							</view>
							<view class="total">
								<text class="num">22507.8489</text>
								<text class="name">总收益</text>
							</view>
							<view class="follow-num">
								<text class="num">6024</text>
								<text class="name">跟随人数</text>
							</view>
						</view>
					</view>
					<view class="trader-item">
						<view class="trader-item-top">
							<view class="user">
								<view class="avatar">
									<image src="../../../static/img/avatar.jpg"></image>
								</view>
								<view class="info">
									<text class="name">OK女王</text>
									<text class="bourse">OKEX交易所</text>
								</view>
								<text class="iconfont icon-safe"></text>
							</view>
							<text class="follow-btn">跟随</text>
						</view>
						<view class="trader-item-bottom">
							<view class="yield">
								<text class="num rise">187.45%</text>
								<text class="name">收益率</text>
							</view>
							<view class="total">
								<text class="num">22507.8489</text>
								<text class="name">总收益</text>
							</view>
							<view class="follow-num">
								<text class="num">6024</text>
								<text class="name">跟随人数</text>
							</view>
						</view>
					</view>
					<view class="trader-item">
						<view class="trader-item-top">
							<view class="user">
								<view class="avatar">
									<image src="../../../static/img/avatar.jpg"></image>
								</view>
								<view class="info">
									<text class="name">OK女王</text>
									<text class="bourse">OKEX交易所</text>
								</view>
								<text class="iconfont icon-safe"></text>
							</view>
							<text class="follow-btn">跟随</text>
						</view>
						<view class="trader-item-bottom">
							<view class="yield">
								<text class="num rise">187.45%</text>
								<text class="name">收益率</text>
							</view>
							<view class="total">
								<text class="num">22507.8489</text>
								<text class="name">总收益</text>
							</view>
							<view class="follow-num">
								<text class="num">6024</text>
								<text class="name">跟随人数</text>
							</view>
						</view>
					</view>
					<view class="trader-item">
						<view class="trader-item-top">
							<view class="user">
								<view class="avatar">
									<image src="../../../static/img/avatar.jpg"></image>
								</view>
								<view class="info">
									<text class="name">OK女王</text>
									<text class="bourse">OKEX交易所</text>
								</view>
								<text class="iconfont icon-safe"></text>
							</view>
							<text class="follow-btn">跟随</text>
						</view>
						<view class="trader-item-bottom">
							<view class="yield">
								<text class="num rise">187.45%</text>
								<text class="name">收益率</text>
							</view>
							<view class="total">
								<text class="num">22507.8489</text>
								<text class="name">总收益</text>
							</view>
							<view class="follow-num">
								<text class="num">6024</text>
								<text class="name">跟随人数</text>
							</view>
						</view>
					</view>
				</view>
			</view>
			
			
		</view>
		
	</view>
</template>

<script>
	import headerBar from '../../../components/header-bar';
	export default {
		components: {
			headerBar
		},
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		// 下拉刷新
		onPullDownRefresh() {
			setTimeout(() => {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		// 上拉加载
		onReachBottom() {
			console.log(5000)
		},
		methods: {

		}
	}
</script>

<style>
	.bill {
		display: flex;
		padding: 0rpx 30rpx;
		margin-bottom: 40rpx;
	}
	.bill-item {
		flex: 1;
		height: 140rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: #fff;
		padding: 0rpx 30rpx;
	}
	.bill-item .info {
		margin-right: 15rpx;
	}
	.bill-item .name {
		font-size: 28rpx;
	}
	.bill-item .tips {
		font-size: 20rpx;
	}
	.bill-follow {
		background-color: #4867e4;
		margin-right: 20rpx;
	}
	.bill-trader {
		background-color: #24b8b8;
	}
	.bill-item .iconfont {
		font-size: 60rpx;
		color: #fff;
	}
	
	.trader-wrap {
		padding: 0rpx 30rpx 10rpx;
		background-color: #f7f7f7;
	}
	.trader-title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 80rpx;
	}
	.trader-title text {
		font-size: 28rpx;
		font-weight: bold;
	}
	.trader-title navigator {
		font-size: 20rpx;
		color: #949399;
	}
	.trader-item {
		padding: 20rpx 30rpx;
		border-radius: 20rpx;
		background-color: #fff;
		margin-bottom: 20rpx;
	}
	.trader-item-top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 30rpx;
	}
	.trader-item-top .user {
		display: flex;
		align-items: center;
	}
	.trader-item-top .avatar {
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
		overflow: hidden;
		margin-right: 15rpx;
	}
	.trader-item-top image {
		width: 100%;
		height: 100%;
	}
	.trader-item-top .info  {
		margin-right: 15rpx;
	}
	.trader-item-top .info text {
		display: block;
	}
	.trader-item-top .info .name {
		font-size: 28rpx;
		font-weight: bold;
		margin-bottom: 5rpx;
	}
	.trader-item-top .info .bourse {
		font-size: 20rpx;
		color: #949399;
	}
	.trader-item-top .follow-btn {
		padding: 10rpx 20rpx;
		font-size: 26rpx;
		background-color: #f7f8fb;
		color: #8081c9;
	}
	.trader-item-bottom {
		display: flex;
		justify-content: space-between;
	}
	.trader-item-bottom text {
		display: block;
		text-align: center;
	}
	.trader-item-bottom .name {
		font-size: 24rpx;
		color: #999;
	}
	.trader-item-bottom .num {
		font-size: 35rpx;
		margin-bottom: 10rpx;
	}
	.trader-item-bottom .rise {
		color: #23e85b;
	}
</style>
